home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ Mouse Options 2.xpl < prev    next >
Text File  |  2001-05-14  |  1KB  |  53 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="2"
  3. "COUNT"="2"
  4. "UIPATH 1"="Hardware\Mouse\General Options"
  5. "NAME"="Double Click Rectangle"
  6. "VERSION"="1.11"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Width"
  9. "TEXT 2"="Height"
  10. "DESCRIPTION 1"="You know how to perform a double click but did you know this:
  11. "DESCRIPTION 2"="There's an invisible rectangle limiting the area in which one may perform the second click. By default, the horizontal and vertical values are 4, but you can make this smaller or larger - handy if you keep moving the mouse accidently while double-clicking."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16. "COMMENT 2"="Tip ripped from http://www.lockergnome.com"
  17.  
  18.  
  19. sV1="HKEY_CURRENT_USER\Control Panel\Desktop\DoubleClickWidth"
  20. sV2="HKEY_CURRENT_USER\Control Panel\Desktop\DoubleClickHeight"
  21.  
  22.  
  23. SUB Plugin_Initialize
  24.  i=RegReadValue(sV1)
  25.  SetUIElement 1,i
  26.  
  27.  i=RegReadValue(sV2)
  28.  SetUIElement 2,i
  29. END SUB
  30.  
  31. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  32.  s=GetUIElement(1)
  33.  if len(s)>0 then
  34.     Call RegWriteValue(sV1,s,1)
  35.  else
  36.     if RegValueExists(sV1) then
  37.        Call RegDeleteValue(sV1)
  38.     end if
  39.  end if
  40.  
  41.  s=GetUIElement(2)
  42.  if len(s)>0 then
  43.     Call RegWriteValue(sV2,s,1)
  44.  else
  45.     if RegValueExists(sV2) then
  46.        Call RegDeleteValue(sV2)
  47.     end if
  48.  end if
  49. END SUB
  50.  
  51. SUB Plugin_Terminate
  52. END SUB
  53.